package com.codejam.hello.world.conf.factory;

import java.util.HashMap;
import java.util.Map;

public class CarFactory {

    private static Map<Integer, Car> aaaaaMap = new HashMap<>();

    static {
        aaaaaMap.put(1, new Car());
        aaaaaMap.put(2, new Car());
    }

    public static Car getCar(int num) {
        return aaaaaMap.get(num);
    }

}
